<?php
header("content-type: text/xml");
$where = $_GET['where'];
$around = $_GET['around'];
$xmlData = file_get_contents_utf8("http://geocoding.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/geocoding/v2/find.js?distance=closest&object_type=$where&around=$around");
echo $xmlData;

function file_get_contents_utf8($fn) {
     $content = file_get_contents($fn);
      return mb_convert_encoding($content, 'UTF-8',
          mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true));
}


?>
